package cn.nubia.admin.application.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.io.Serializable;
import java.util.Date;

/**
 *专题管理查询
 */
public class TopicQueryParam extends PageQueryParam implements Serializable {

    private String topicName;

    private Date startTimes;

    private Date startTimee;


    private Integer state;

    private Integer topicId;

    private String startTimeRange;

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }



    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getStartTimes() {
        return startTimes;
    }

    public Date getStartTimee() {
        return startTimee;
    }

    public void setStartTimes(Date startTimes) {
        this.startTimes = startTimes;
    }

    public void setStartTimee(Date startTimee) {
        this.startTimee = startTimee;
    }

    public String getStartTimeRange() {
        return startTimeRange;
    }

    public void setStartTimeRange(String startTimeRange) {
        this.startTimeRange = startTimeRange;
        if (startTimeRange != null&&startTimeRange!="") {
            this.setStartTimes(DateUtil.getBeginDateFromRange(startTimeRange));
            this.setStartTimee(DateUtil.getEndDateFromRage(startTimeRange));
        }
    }
}
